package net.animats.music;

import java.util.ArrayList;
import java.util.List;

public class Scale extends NoteSet {

	// NoteSet ALSO STORES A REFERENCE TO THIS OBJECT, BUT AS AN IntervalSet
    private ScaleType scaleType;

    public static void main(String args[]) {
		Scale scale;
		scale = new Scale(Note.getNote("A"), ScaleType.getScaleType("Major"));
		System.out.println(scale.getName() + " : " + scale);
		scale = new Scale(Note.getNote("A"), ScaleType.getScaleType("Minor"));
		System.out.println(scale.getName() + " : " + scale);
	}

	/* CREATE THE SCALE BY SPECIFYING THE ROOT Note AND A ScaleType */
	public Scale(Note _rootNote, ScaleType _scaleType) {
		super (_rootNote, _scaleType);
        scaleType = _scaleType;
	}

    public int getNamingIndex() {
        return scaleType.getNamingIndex(getRootNote());
    }

}
